﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="PowerTestStatisticsbyDT.aspx.cs" Inherits="StatisticData_PowerTestStatistic_PowerTestStatisticsbyDT"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript" src="../../js/my97datepicker/WdatePicker.js"></script>

    <div>
        <br />
        <asp:Panel ID="Panel1" runat="server">
            起始时间：
            <input type="text" runat="server" id="TextBox1" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 终止时间：
            <input type="text" runat="server" id="TextBox2" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" Text="查 询" OnClick="Button1_Click" ValidationGroup="VGroup1" />
        </asp:Panel>
    </div>
    <div style="clear: both">
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1"
            EmptyDataText="没有相关数据！" GridLines="None" Width="100%">
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <Columns>
                <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                <%--<asp:BoundField DataField="CouplerValue" HeaderText="耦合值" />--%>
                <asp:BoundField DataField="onceAmount" HeaderText="一次数" />
                <asp:BoundField DataField="oncePassAmount" HeaderText="一次合格数" />
                <asp:BoundField DataField="oncePassRate" DataFormatString="{0:F3}" HeaderText="一次合格率" />
                <asp:BoundField DataField="directRetestAmount" HeaderText="直接复测数" />
                <asp:BoundField DataField="directRetestPassAmount" HeaderText="直接复测合格数" />
                <asp:BoundField DataField="directRetestPassRate" DataFormatString="{0:F3}" HeaderText="直接复测合格率" />
                <asp:BoundField DataField="passRate" DataFormatString="{0:F3}" HeaderText="通过率" />
                <asp:BoundField DataField="retestAmount" HeaderText="吹气后复测数" />
                <asp:BoundField DataField="retestPassAmount" HeaderText="吹气后复测合格数" />
                <asp:BoundField DataField="retestRate" DataFormatString="{0:F3}" HeaderText="吹气后复测合格率" />
                <asp:BoundField DataField="PassAmount" HeaderText="合格数" />
                <asp:BoundField DataField="Amount" HeaderText="测试数" />
                <asp:BoundField DataField="rate" DataFormatString="{0:F3}" HeaderText="合格率" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
        <br />
        <br />
        <br />
        <br />
    </div>
</asp:Content>
